/**
 * @author MIAO
 * Created on 2011-10-9
 * For more information, please visit:ismiao.com
 */
package com.ismiao.designPattern.Observer;
//演示
public class ObserverDemo {
	public static void main(String[] args){
		BeingWatched beingWatched = new BeingWatched();
		Watcher watcher = new Watcher();
		beingWatched.addObserver(watcher);
		beingWatched.counter(10);
	}
}
